package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_relation")
public class Relation extends Model<Relation> {

    private static final long serialVersionUID=1L;

    private String id;

    private String rRemark;

    private String rSyno;

    private String customerId;

    private String supplierId;

    @TableField(exist = false)
    private  Company company;

    @TableField(exist = false)
    private  User user;

    @TableField(exist = false)
    private  Product product;

    @TableField(exist = false)
    private  Order order;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
